home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / diagsetup.z / diagsetup
Encoding:
Text File  |  2001-04-17  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ddddiiiiaaaaggggsssseeeettttuuuupppp((((1111MMMM))))                                                    ddddiiiiaaaaggggsssseeeettttuuuupppp((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      diagsetup - control the contents of the diag user's running of cached and
  10.      onlinediag
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ddddiiiiaaaaggggsssseeeettttuuuupppp ----xxxx "cached <options>" [----hhhh | ----dddd hour | ----wwww wkday |
  14.           ----mmmm monthday | ----nnnn] [----tttt hour]
  15.      ddddiiiiaaaaggggsssseeeettttuuuupppp ----xxxx "onlinediag <options>" [----hhhh | ----dddd hour | ----wwww wkday
  16.           | ----mmmm monthday | ----nnnn] [----tttt hour]
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      _d_i_a_g_s_e_t_u_p controls the running of _c_a_c_h_e_d and _o_n_l_i_n_e_d_i_a_g by the diag user.
  20.      This command can be used to either turn off the running of these
  21.      diagnostic tests or to make them run more frequently or less frequently
  22.      then they do by default.
  23.  
  24.      The ----xxxx _c_a_c_h_e_d <_o_p_t_i_o_n_s> | _o_n_l_i_n_e_d_i_a_g <_o_p_t_i_o_n_s> parameter indicates which
  25.      diagnostic testing program we are modifying the behavior of.  We can
  26.      modify the frequency of running one of these programs.  The -x parameter
  27.      must be present for this program to run.
  28.  
  29.      The ----hhhh parameter indicates that the given program will be run once an
  30.      hour on the hour.  This parameter is the default for the cached
  31.      diagnostic program.
  32.  
  33.      The ----dddd _h_o_u_r parameter indicates that the given program will be run once a
  34.      day on the given hour.  This parameter with the "0" hour is the default
  35.      for the onlinediag diagnostic program.
  36.  
  37.      The ----wwww _w_e_e_k_d_a_y parameter indicates that the given program will be run
  38.      once a week on the given day of the week.
  39.  
  40.      The ----mmmm _m_o_n_t_h_d_a_y parameter indicates that the given program will be run
  41.      once a month on the given day of the month.
  42.  
  43.      The ----nnnn parameter indicates that the given program should never be run.
  44.      It turns off the periodic testing until someone turns it back on.
  45.  
  46.      The ----tttt _h_o_u_r parameter indicates the hour on a given day of the month or
  47.      day of a week (used with the -w or -m parameters) that the program should
  48.      be run.  If this is not specified, the default is the "0" hour
  49.      (midnight).
  50.  
  51.  
  52.  
  53. OOOOVVVVEEEERRRRVVVVIIIIEEEEWWWW
  54.      _d_i_a_g_s_e_t_u_p modifies the crontab file of the diag user.  The diag user is
  55.      in charge of running of the _c_a_c_h_e_d and _o_n_l_i_n_e_d_i_a_g programs that run
  56.      sanity checks during run time.  Because the diag user has the same user
  57.      id as the root user, the diagnostic tests run with root permissions.
  58.      However, this means the crontab file of the diag user cannot be modified
  59.      using the _c_r_o_n_t_a_b command (it will try to modify the root crontab
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ddddiiiiaaaaggggsssseeeettttuuuupppp((((1111MMMM))))                                                    ddddiiiiaaaaggggsssseeeettttuuuupppp((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      instead).  diagsetup can be used to easily modify the diag user's crontab
  75.      file.  If the diag crontab file is modified directly, diagsetup may no
  76.      longer run correctly.
  77.  
  78.      _d_i_a_g_s_e_t_u_p overwrites the crontab file of the diag user every time that it
  79.      runs and also sends a SIGHUP to cron so that it will process the new
  80.      crontab file.
  81.  
  82.  
  83.  
  84. FFFFIIIILLLLEEEESSSS
  85.      /usr/diags                 the diag user's home directory
  86.      /usr/diags/bin/diagsetup   location of diagsetup script
  87.      /var/spool/cron/crontabs/diag
  88.                                 crontab of the diag user
  89.  
  90.  
  91.  
  92. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  93.      cached(1M), onlinediag(1M)
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.